package GameEngine.Model;

import java.util.ArrayList;

public class GameObjectManager {

	private ArrayList<GameObject> GameObjects = new ArrayList<GameObject>();

	public GameObjectManager() {
	}

	public GameObject getGameObject(int id) {
		return GameObjects.get(id);
	}

	public void updateGameObject(int id, GameObject go) {
		if (getGameObject(id) != null) {
			getGameObject(id).updateValues(go);
			// TODO Update von GameObject ... mit, oder ohne set ??
			// GameObjects.set(id, getGameObject(id));
		}
	}
}
